package com.struts.web.user.register;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.lg.system.CLGAction;
import com.struts.deal.user.register.*;

public class FavoriteAction extends CLGAction {

	public ActionForward execute(ActionMapping actionMapping,
            ActionForm actionForm,
            HttpServletRequest request,
            HttpServletResponse response) throws
Exception {
		FavoriteForJobForm aWebForm = (FavoriteForJobForm)actionForm;
		if(aWebForm.getOmethod()!=null && aWebForm.getOmethod().equals("add")){
			FavoriteDeal.doAdd(request, response, aWebForm);
			logger.info("到了这里regUserPicture:"+aWebForm.getOmethod());
			return actionMapping.findForward("regUserPicture");
		}else{
			FavoriteDeal.setDefault(request, response, aWebForm);
			return actionMapping.getInputForward();
		}
     }
	
}
